package org.lalib.mediator;

import java.util.List;

import org.lalib.acquire.IMediator;
import org.lalib.entity.object.EUserGroup;
import org.lalib.foundation.FDataAccess;
import org.springframework.stereotype.Repository;

@Repository(value = "mUserGroup")
public class MUserGroup extends FDataAccess<EUserGroup> implements IMediator {
	private static final long serialVersionUID = 1L;

	@SuppressWarnings("unchecked")
	public List<EUserGroup> getAllUserGroups() {
		return getSession().createCriteria(EUserGroup.class).list();
	}

	@Override
	protected Class<EUserGroup> getClassType() {
		return EUserGroup.class;
	}
}